package com.zui.util;

import java.io.Serializable;

/**
 * Extend your custom server-side upload handler to return a JSON response akin to the following output:
[
  {
    "name":"picture1.jpg",
    "size":902604,
    "url":"\/\/example.org\/files\/picture1.jpg",
    "thumbnail_url":"\/\/example.org\/thumbnails\/picture1.jpg",
    "delete_url":"\/\/example.org\/upload-handler?file=picture1.jpg",
    "delete_type":"DELETE"
  },
  {
    "name":"picture2.jpg",
    "size":841946,
    "url":"\/\/example.org\/files\/picture2.jpg",
    "thumbnail_url":"\/\/example.org\/thumbnails\/picture2.jpg",
    "delete_url":"\/\/example.org\/upload-handler?file=picture2.jpg",
    "delete_type":"DELETE"
  }
]
 * @author Sam
 *
 */
public class UploadedJQFile implements Serializable {

	private static final long serialVersionUID = -38331060124340967L;
	private String imageId;
	private String name;
	private Integer size;
	private String url;
	private String thumbnail_url;
	private String delete_url;
	private String delete_type = "DELETE";

	public UploadedJQFile() {
		super();
	}

	public UploadedJQFile(String name, Integer size, String url) {
		super();
		this.name = name;
		this.size = size;
		this.url = url;
	}

	public UploadedJQFile(String imageId, String name, Integer size, String url,
			String thumbnail_url, String delete_url) {
		super();
		this.imageId = imageId;
		this.name = name;
		this.size = size;
		this.url = url;
		this.thumbnail_url = thumbnail_url;
		this.delete_url = delete_url;
	}

	
	
	
	public String getName() {
		return name;
	}

	public Integer getSize() {
		return size;
	}

	public String getUrl() {
		return url;
	}

	public String getThumbnail_url() {
		return thumbnail_url;
	}

	public String getDelete_url() {
		return delete_url;
	}

	public String getDelete_type() {
		return delete_type;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setThumbnail_url(String thumbnail_url) {
		this.thumbnail_url = thumbnail_url;
	}

	public void setDelete_url(String delete_url) {
		this.delete_url = delete_url;
	}

	public void setDelete_type(String delete_type) {
		this.delete_type = delete_type;
	}

	public String getImageId() {
		return imageId;
	}

	public void setImageId(String imageId) {
		this.imageId = imageId;
	}

	

}